<div class="title">
  <div class="left">
    所在企业
  </div>
  <div class='right'>
    <%= link_to '返回', show_enterprise_user_url(current_user), :method => :get, :remote => true, :class => 'crud back' %>
  </div>
</div>
<%= form_for current_user.enterprise,
  :url => update_enterprise_user_url(current_user.enterprise),
  :remote => true,
  :method => :put do |f| %>
<dl class="grid_15">
<dt class="grid_2">名称：</dt>
<dd class="grid_9"><%= f.text_field :name %></dd>
</dl>
<dl class="grid_15">
<dt class="grid_2">联系电话：</dt>
<dd class="grid_9"><%= f.text_field :link_phone %></dd>
</dl>
<dl class="grid_15">
<dt class="grid_2">传真：</dt>
<dd class="grid_9"><%= f.text_field :fax %></dd>
</dl>
<dl class="grid_15">
<dt class="grid_2">电邮：</dt>
<dd class="grid_9"><%= f.text_field :email %></dd>
</dl>
<dl class="grid_15">
<dt class="grid_2">地址：</dt>
<dd class="grid_9"><%= f.text_field :address %></dd>
</dl>
<dl class="grid_15">
<dt class="grid_2">管理员：</dt>
<dd class="grid_9"><%= select "enterprise", "admin_id", current_user.enterprise.users.all.collect{|u| [u.full_name, u.id]}, { :include_blank => false } %></dd>
</dl>
<dl class="grid_15">
<dt class="grid_2">客服QQ：</dt>
<dd class="grid_9" title='QQ号之间用空格间隔开'><%= f.text_field :qq %></dd>
</dl>
<dl class="grid_15">
<dt class="grid_2">公司简介：</dt>
<dd class="grid_9"><%= f.text_area :synopsis %></dd>
</dl>
<div class="grid_5 form_tool">
  <%= f.submit '保存' %>
  <%= link_to '返回', show_enterprise_user_url(current_user), :method => :get, :remote => true, :class => 'button' %>
</div>
<%end%>